<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<!--注册提交表单   /user/register
http://localhost:8080/Web205_206/user/register?user_name=jack&user_psw=123&gender=man&habit=basketball&habit=soccer
get方式的提交：中文请求不乱码（tomcat9默认编码UTF-8），响应默认中文乱码
post方式提交：中文乱码（iso8859-1）
-->
<form action="../user/register" method="post">
    <input type="text" name="user_name" placeholder="请输入姓名"><br>
    <input type="password" name="user_psw" placeholder="请输入密码"><br>
    男<input type="radio" name="gender" value="man">
    女<input type="radio" name="gender" value="female"><br>
    篮球<input type="checkbox" name="habit" value="basketball">
    足球<input type="checkbox" name="habit" value="soccer">
    读书<input type="checkbox" name="habit" value="book">
    <br/>
    <input type="submit" value="注册">
</form>
</body>
</html>